import request from '@/utils/request'

// 查询故障巡查列表
export function listJidiansheshiguzhangxuncha(query) {
  return request({
    url: '/biz/jidiansheshiguzhangxuncha/list',
    method: 'get',
    params: query
  })
}

// 查询故障巡查详细
export function getJidiansheshiguzhangxuncha(id) {
  return request({
    url: '/biz/jidiansheshiguzhangxuncha/' + id,
    method: 'get'
  })
}

// 新增故障巡查
export function addJidiansheshiguzhangxuncha(data) {
  return request({
    url: '/biz/jidiansheshiguzhangxuncha',
    method: 'post',
    data: data
  })
}

// 修改故障巡查
export function updateJidiansheshiguzhangxuncha(data) {
  return request({
    url: '/biz/jidiansheshiguzhangxuncha',
    method: 'put',
    data: data
  })
}

// 删除故障巡查
export function delJidiansheshiguzhangxuncha(id) {
  return request({
    url: '/biz/jidiansheshiguzhangxuncha/' + id,
    method: 'delete'
  })
}

// 导出故障巡查
export function exportJidiansheshiguzhangxuncha(query) {
  return request({
    url: '/biz/jidiansheshiguzhangxuncha/export',
    method: 'get',
    params: query
  })
}